-- GENERATED SPELL FOR [Skeletal Terror] --


function spell0_1785(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(12542,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1785', 5500, 1)
end

function Sorts_1785(pUnit, Event)
local choix_sorts_1785 = math.random(0, 0)
if choix_sorts_1785 == 0 then
pUnit:RegisterEvent('spell0_1785', 1, 1)
end
end

function mob1785_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1785', math.random(1500, 3000), 1)
end

function mob1785_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1785_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1785_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1785, 1, 'mob1785_Action')
RegisterUnitEvent(1785, 2, 'mob1785_Leave')
RegisterUnitEvent(1785, 3, 'mob1785_Kill')
RegisterUnitEvent(1785, 4, 'mob1785_Die')
